import axios from '@/libs/axios'


//登陆
export const login = params => { return axios.post('api/login', params).then(res => res.data) };
//退出登陆
export const logout = params => { return axios.post('api/logout', params).then(res => res.data) };

//获取用户信息
export const getUserInfo = params => { return axios.get('api/user', params).then(res => res.data) };

//用户列表
export const userList = params => { return axios.post('api/system/userList', params).then(res => res.data) };
//更新用户
export const userSet = params => { return axios.post('api/system/userSet', params).then(res => res.data) };
